package com.wyc.apiPassenger.controller;

import com.wyc.internalCommon.result.ApiResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    /**
     * 项目初建test
     * @return
     */
    @RequestMapping("/test")
    public String test(){
        return "test api passenger";
    }

    /**
     * 携带token
     * @return
     */
    @RequestMapping("/authTest")
    public ApiResult authTest(){
        return ApiResult.success("auth test");
    }

    /**
     * 不携带token
     * @return
     */
    @RequestMapping("/noAuthTest")
    public ApiResult noAuthTest(){
        return ApiResult.success("no auth test");
    }

}
